(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
fib(N) → sel(N, fib1(s(0), s(0)))
fib1(X, Y) → cons(X, n__fib1(Y, add(X, Y)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
sel(0, cons(X, XS)) → X
sel(s(N), cons(X, XS)) → sel(N, activate(XS))
fib1(X1, X2) → n__fib1(X1, X2)
activate(n__fib1(X1, X2)) → fib1(X1, X2)
activate(X) → X
Rewrite Strategy: INNERMOST
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
add(s(X), Y) →+ s(add(X, Y))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0].
The pumping substitution is [X / s(X)].
The result substitution is [ ].
(2) BOUNDS(n^1, INF)